package org.yogurtcat.server.modules.storage.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.Repository;
import org.yogurtcat.server.common.storage.domain.Storage;

public interface StorageRepository extends Repository<Storage, Long>, JpaSpecificationExecutor<Storage> {

	Storage save(Storage storage);

	void delete(Storage storage);

	Storage findById(Long id);
	
	Storage findTopByBusinessTypeContaining(String businessType);

	List<Storage> findByOrderById();
}
